home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 166 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  51 lines

  1. Newsgroups: comp.lang.c
  2. Path: elroy.jpl.nasa.gov!llyene!news
  3. From: kdq@emoryi.jpl.nasa.gov (Kevin Quitt)
  4. Subject: Re: Need Soundx code
  5. Message-ID: <30e98d17.9565573@llyene.jpl.nasa.gov>
  6. Sender: news@llyene.jpl.nasa.gov
  7. Reply-To: kdq@emoryi.jpl.nasa.gov
  8. Organization: Jet Propulsion Laboratory
  9. X-Newsreader: Forte Agent .99c/16.141
  10. References: <4c1nlj$9t8@news-f.iadfw.net>
  11. Date: Tue, 2 Jan 1996 19:53:29 GMT
  12.  
  13. On Fri, 29 Dec 1995 21:46:34 GMT, bwilson@airmail.net (Bob Wilson) wrote:
  14. >I need either 'C' source that I can compile in a 32 bit DLL or  a VB
  15. >OCX that will generate Soundx codes.  
  16.  
  17. From Knuth Vol 3.
  18.  
  19. The Soundex method was originally developed by Margert Odell and
  20. Robert Russell and was patented [US 1261167 (1918), 1435663 (1922)].
  21.  
  22. Knuth's description:
  23.  
  24. 1. Retain the first letter of the name
  25.  
  26. 2. Drop from all other positions, the letters: A E H I O U W Y
  27.  
  28. 3. Assign numbers to letters per:
  29.  
  30.     1: B F P V
  31.     2: C G J K Q S X Z
  32.     3: D T
  33.     4: L
  34.     5: M N
  35.     6: R
  36.  
  37. 4: Drop all but the first number in repeated number sequences.
  38.  
  39. 5: The output is the form L### where L is the first letter of the
  40.    word, and ### is the first three digits (adding zeroes as
  41.    necessary).
  42.  
  43. Kevin:    K150
  44. David:    D130
  45. Quitt:    Q300
  46.  
  47. -- 
  48. #include <standard.disclaimer>                   http://emoryi.jpl.nasa.gov/
  49.  _
  50. Kevin D Quitt  USA 91351-4454           96.37% of all statistics are made up
  51.